package shixun.service;

import shixun.domain.Root;
import shixun.domain.User;

import java.util.List;

public interface UserService {
    public User login(String username,String password);

    public Root rootLogin(String username, String password);

    public void add(User user);

    public void update(String username,String password);

    public int findIdByUsername(String username);

    public boolean findUser(String username);

    public List<User> findAllUsers();

    public void frozen(int id);

    public void thaw(int id);

    public void cancellation(int id);
}
